package baseproject.com.mybaseproject.mvp.contract

import com.bybops.model.bean.EquipmentList


/**
 * Created by wm on 2018/9/8.
 *
 * 文件描述：
 *
 * 修改原因：
 *
 */
interface MainContract {

    interface MainView : IContract.IBaseView {

        fun loginOutSucess(msg: String)
        fun loginOutFailed(errorMsg: String)

        fun appEquipmentGetListSucess(data: ArrayList<EquipmentList>)
        fun equipmentGetDetailSuccess(data: EquipmentList)
        fun appEquipmentGetListFail(smg: String)
    }

    interface MainPresenter : IContract.IBasePresenter<MainContract.MainView> {
        /**
         * 登出方法
         */
        fun loginOut()

        /**
         * 获取工作列表
         */
        fun appEquipmentGetList(refresh : Boolean)

        /**
         * 根据equipSN获取设备详情
         */
        fun equipmentGetDetail(equipSN : String?)
    }
}